﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using JihankiLib;

namespace GuiJihanki
{
    partial class JihankiItemBoxPanel : UserControl
    {
        public JihankiItemBoxPanel()
        {
            InitializeComponent();
        }

        public void Initialize(JihankiItemBoxMachine machine)
        {
            //ここでセットしちゃう

            jihankiItem1.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(1, 120), machine));
            jihankiItem2.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(2, 120), machine));
            jihankiItem3.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(3, 120), machine));
            jihankiItem4.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(4, 120), machine));
            jihankiItem5.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(5, 120), machine));

            jihankiItem6.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(6, 150), machine));
            jihankiItem7.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(7, 150), machine));
            jihankiItem8.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(8, 150), machine));
            jihankiItem9.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(9, 150), machine));
            jihankiItem10.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(10, 150), machine));

            jihankiItem11.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(11, 200), machine));
            jihankiItem12.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(12, 200), machine));
            jihankiItem13.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(13, 230), machine));
            jihankiItem14.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(14, 230), machine));
            jihankiItem15.Initialize(new JihankiItemUnitBoxProcesser(new ItemStock(15, 550), machine));
        }
    }
}
